﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            List<int> diags = new List<int>();
            foreach (string el in "1,2,3,4".Split(','))
            {
                diags.Add(Convert.ToInt32(el));
            }
            foreach (int el in diags)
            {

                Console.WriteLine(el);
            }
        }
    }
}
